package io.babystar.modules.business.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单表
 */
@Data
@TableName("cw_order")
public class CWOrderEntity implements Serializable {
	private static final long serialVersionUID = 1L;


	@TableId
	private Integer id;

	private Integer businessId;

	private Integer shopId;

	@TableField(exist = false)
	private String shopName;

	//财务分类id
	private Integer categoryId;

	//分类名称
	@TableField(exist = false)
	private String categoryName;

	//学生id
	private Integer studentId;

	private String studentName;

	//订单金额
	private BigDecimal orderAmount;

	private Integer cardTypeId;

	private Integer studentSex;

	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
	private Date studentAge;

	private Integer isOld;

	private String phone;

	private String address;

	private String school;

	private String source;

	private String payType;

	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
	private Date payDate;

	private String equipment;

	private String yaoyue;

	private String tiyan;

	private String genjin;

	//0正常1删除
	private Integer delFlag;

	private String creator;

	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
	private Date createAt;

	private String updator;

	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
	private Date updateAt;

	private String pic;

	/**
	 * 备注
	 */
	private String remarks;

	@TableField(exist = false)
	private Integer  yaoyueId;

	@TableField(exist = false)
	private Integer tiyanId;

	@TableField(exist = false)
	private Integer genjinId;

	private Integer baseVipId;

}
